<#assign tit><#if _oper='add'>新增<#else>修改</#if>短信模板</#assign>
<@page.html title=tit>
<style>td span {display:inline-block; margin-right:5px;}</style>
<div style="width:500px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">编号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${smsType.code!}" req="编号" size="16" maxlength="20"><#else><input type="hidden" name="code" value="${smsType.code!}">${smsType.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><#if _oper='add'><input type="text" name="chName" value="${smsType.chName!}" req="名称" size="26" maxlength="50"><#else><input type="hidden" name="chName" value="${smsType.chName!}">${smsType.chName!}</#if></td>
        </tr>
        <tr>
          <th>可用变量</th>
          <td style="line-height:20px;">${smsType.variable!}</td>
        </tr>
        <tr>
          <th>内容</th>
          <td><textarea name="smsText" cols="40" rows="4">${smsType.smsText!}</textarea></td>
        </tr>
        <tr>
          <th>状态</th>
          <td><input type="radio" name="status" id="enable_1" value="1"<#if smsType.status=1> checked</#if>><label for="enable_1">启用</label>
            <input type="radio" name="status" id="enable_2" value="2"<#if smsType.status!=1> checked</#if>><label for="enable_2">停用</label></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>